<?php
	class Fulfillment extends Model_Abstract{
		
		public function add($uid, $bill){
			$created = $updated = time();
			try{
				$sql = "insert into fulfillments set uid=?, bill=?, created=?, updated=?";
				return $this->_connection->execute($sql, array($uid, $bill, $created, $updated));
			}catch (Exception $e)
			{
				QLog::log(__CLASS__.' '.__METHOD__.' --- '.$e->getMessage(), QLog::ERR);
				throw new Model_Exception($e->getMessage(), $e->getCode());
			}
		}
		
	}